package com.example.lol.base;

import android.content.Context;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(contentView());

        bindData();
        bindEvent();
    }

    protected abstract int contentView();

    protected abstract void initView();

    protected abstract void bindData();

    protected abstract void bindEvent();

    protected Context getContext(){
        return this;
    }
}
